package com.zxy.service;

import com.zxy.Dao.UserDao;
import com.zxy.entity.User;
import com.zxy.util.SqlSessionFactoryUtil;

public class UserService {
    UserDao userDao = SqlSessionFactoryUtil.getSqlSession().getMapper(UserDao.class);

    public User login(User user) {
        return userDao.login(user);
    }
}
